import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long num = sc.nextLong();
        if (num<10) {
            System.out.println(num);
        }else {
            String s = String.valueOf(num);
            System.out.println(s);
            int length = s.length()-1;
            double a=num/Math.pow(10,length);
            System.out.println(a==(int)a?(int)a+"E"+length:a+"E"+length);
        }
    }
}
